package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.search.pojo.HistorySearchDto;

/**
 * @Author: JW
 * @Description: TODO
 * @DateTime: 2022-02-18 15:03
 **/
public interface ApUserSearchService {

    /**
     * @Author: JW
     * @Description:  TODO 保存 && 修改 搜索词条
     * @Date: 15:20 2022-02-18
     * @Param: [searchWords, id] 词条 用户id
     * @return: void
    **/
    void save(String searchWords, Integer id);

    /**
     * @Author: JW
     * @Description:  TODO 查询所有搜索词条
     * @Date: 15:49 2022-02-18
     * @Param: []
     * @return: com.heima.model.common.dtos.ResponseResult
    **/
    ResponseResult findHistory();

    /**
     * @Author: JW
     * @Description:  TODO 删除历史搜索
     * @Date: 15:57 2022-02-18
     * @Param: [historySearchDto]
     * @return: com.heima.model.common.dtos.ResponseResult
    **/
    ResponseResult remove(HistorySearchDto historySearchDto);

}
